{template nheader.html}
<div class="page-bar">
	<ul class="page-breadcrumb mylink">
		{$menu.link}

	</ul>
	<ul class="page-breadcrumb myname">
		{$menu.name}
	</ul>
	<div class="page-toolbar">
		<div class="btn-group pull-right">
			<button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> {fc_lang('操作菜单')}
				<i class="fa fa-angle-down"></i>
			</button>
			<ul class="dropdown-menu pull-right" role="menu">
				{loop $menu.quick $t}
				<li>
					<a href="{$t.url}">{$t.icon} {$t.name}</a>
				</li>
				{/loop}
				<li class="divider"> </li>
				<li>
					<a href="javascript:window.location.reload();">
						<i class="icon-refresh"></i> {fc_lang('刷新页面')}</a>
				</li>
			</ul>
		</div>
	</div>
</div>

<div class="mytopsearch">
	<form class="row" method="post" action="" name="searchform" id="searchform">
		<input name="search" id="search" type="hidden" value="1" />
		<div class="col-md-12">
			<label>
				<select name="data[field]" class="form-control">
					<option value="id" {if $param.field=='id'}selected{/if}>Id</option>
					<option value="uid" {if $param.field=='uid'}selected{/if}>Uid</option>
					{loop $field $t}
					{if $t.ismain && $t.fieldname != 'inputtime'}
					<option value="{$t.fieldname}" {if $param.field==$t.fieldname}selected{/if}>{$t.name}</option>
					{/if}
					{/loop}
				</select>
			</label>
			<label><i class="fa fa-caret-right"></i></label>
			<label style="padding-right: 20px;"><input type="text" class="form-control" placeholder="{fc_lang('多个Id可以用“,”分隔')}" value="{$param['keyword']}" name="data[keyword]" /></label>

			<label>{fc_lang('录入时间')} ：</label>
			<label>{dr_field_input('start', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>'100')), (int)$param.start)}</label>
			<label><i class="fa fa-minus"></i></label>
			<label style="margin-right:10px">{dr_field_input('end', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>'100')), (int)$param.end)}</label>
			<label><button type="submit" class="btn green btn-sm" name="submit" > <i class="fa fa-search"></i> {fc_lang('搜索')}</button></label>
		</div>
	</form>
</div>


<form class="form-horizontal" action="" method="post" id="myform" name="myform">
	<input name="action" id="action" type="hidden" value="" />
<div class="portlet">
	<div class="portlet-body">
		<div class="table-scrollable ">
			<table class="mytable table table-striped table-bordered table-hover table-checkable dataTable">
				<thead>
				<tr>
					<th align="right"></th>
					<th width="90" class="{ns_sorting('id')}" name="id" >Id</th>
					<th class="{ns_sorting('subject')}" name="subject" >{fc_lang('主题')}</th>
					<th width="155" class="{ns_sorting('uid')}" name="uid" >{fc_lang('录入作者')}</th>
					<th width="155"class="{ns_sorting('inputtime')}" name="inputtime">{fc_lang('录入时间')}</th>
					<th align="left" class="dr_option">{fc_lang('操作')}</th>
				</tr>
				</thead>
				<tbody>
				{loop $list $t}
				<tr id="dr_row_{$t.id}">
					<td><input name="ids[]" type="checkbox" class="dr_select toggle md-check" value="{$t.id}" /></td>
					<td>{$t.id}</td>
					<td><a href="{if $t.url}{$t.url}{else}#{/if}" {if $t.url} target="_blank" {/if}>{dr_keyword_highlight($t.subject, $param.keyword)}</a></td>
					<td><a href="javascript:;" onclick="dr_dialog_member('{$t.uid}')">{dr_strcut($t.author, 10)}</a></td>
					<td>{dr_date($t.inputtime, NULL, 'red')}</td>
					<td class="">
						{if $this->ci->is_auth(APP_DIR.'/'.$_class.'/edit')}<a class="btn green btn-xs" href="{dr_url(APP_DIR.'/'.$_class.'/edit',array('cid' => $cid, 'id' => $t.id))}"> <i class="fa fa-edit"></i> {fc_lang('修改')}</a> {/if}
						{if $this->ci->is_auth(APP_DIR.'/'.$_class.'/show')}<a class="btn blue btn-xs" href="{dr_url(APP_DIR.'/'.$_class.'/show',array('cid' => $cid, 'id' => $t.id))}"> <i class="fa fa-search"></i> {fc_lang('查看')}</a> {/if}
					</td>
				</tr>
				{/loop}
				<tr class="mtable_bottom">
					<th width="20"><input name="dr_select" class=" toggle md-check" id="dr_select" type="checkbox" onClick="dr_selected()" />&nbsp;</th>
					<td colspan="9"  >
						{if $this->ci->is_auth(APP_DIR.'/'.$_class.'/del')}<button type="button" class="btn red btn-sm" name="option" onClick="$('#action').val('del');dr_confirm_set_all('{fc_lang('您确定要这样操作吗？')}')"><i class="fa fa-trash"></i> {fc_lang('删除')}</button> {/if}
					</td>
				</tr>
				</tbody>
			</table>
		</div>

	</div>
</div>
</form>
<div id="pages"><a>{fc_lang('共%s条', $total)}</a>{$pages}</div>


{template nfooter.html}